<?php

namespace App\Models\Payment\Repositories\Interfaces;

use App\Models\Payment\Payment;
use App\Models\Payment\PaymentLogs;

interface PaymentRepositoryInterface
{
    public function addPayment(array $data): Payment;

    public function findOnePaymentOrPayLog(string $mchid = ''): Payment|PaymentLogs|null;

    public function findOnePayment(string $mchid = ''): ?Payment;

    public function findOnePaymentByMchId(string $mchid): ?Payment;
}